package com.aiyige.base.eventbus;

import com.aiyige.base.db.table.MajorCourseDBModel;

/**
 * Created by zhuyakun on 2017/12/6.
 */

public class EventCopyMajorCourseFinish {
    public static final int RESULT_OK = 1;
    public static final int RESULT_CANCEL = 2;
    int resultCode;

    public EventCopyMajorCourseFinish() {
    }

    private EventCopyMajorCourseFinish(Builder builder) {
        setResultCode(builder.resultCode);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public static final class Builder {
        private int resultCode;

        private Builder() {
        }

        public Builder resultCode(int resultCode) {
            this.resultCode = resultCode;
            return this;
        }

        public EventCopyMajorCourseFinish build() {
            return new EventCopyMajorCourseFinish(this);
        }
    }
}
